<!--
 * @FilePath     : /study_code/css/float6.html
 * @Description  : 浮动 块元素靠内容撑开宽度
 * @Date         : 2025-04-27 10:27:20
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-27 10:27:20
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
    <style>
      .box {
        background-color: lightcoral;
        border: 1px solid lightgreen;
      }

      .fl {
        float: left;
      }
    </style>
  </head>
  <body>
    <div class="box">（块级）未浮动元素</div>
    <div class="box fl">（块级）浮动元素</div>
    <div class="box">（块级）未浮动元素</div>
    <script></script>
  </body>
</html>
